Hi,
when I do this
I have an error "
I debugged and found it is in this line of a code "throw error("@Budget:BudgetSourceTrackingNotConfirmed");" - "Contact your administrator for further assistance", probably made by "lastBudgetSourceTracking.Status != BudgetSourceTrackingStatus::Confirmed" which is attached below:
Class BudgetControlTrackingUpdate
/// <summary>
/// Gets all remaining confirmed funds for the budget source.
/// </summary>
public void returnRemainingFunds()
{
if (isSimulation)
{
// This API does not support returning remaining funds as simulation.
throw error(error::wrongUseOfFunction(funcName()));
}
else
{
this.determineLastSourceTracking();
if (lastBudgetSourceTracking && lastBudgetSourceTracking.Status != BudgetSourceTrackingStatus::Confirmed)
{
// This API does not support returning remaining funds for draft budget sources.
// Use removeTracking API to remove funds for draft budget sources.
throw error("@Budget:BudgetSourceTrackingNotConfirmed");
}
this.determineTrackingSequenceNumber();
this.determineSourceTrackingToReturn();
if (budgetSourceTrackingToReturnAmounts)
{
this.createReturnRemainingDetails();
}
}
We found out that when turning off and on "Budget control" in budget control configuration, someone can do a confirmation. But how to avoid this and what is the main reason for this situation?
Any ideas how to solve this?
Thank you Magno for your response.
Yes, they intend to utilize budget control.
We import purchase requisitions from an external system.
If I manually change status on lastBudgetSourceTracking, I can do a confirmation, and I have a proper status on AccountingDistributions for purchase orders but a wrong status on AccountingDistributions for purchase requisition.
I would suggest confirming with the business whether they intend to utilize budget control as a functionality. If so, it is important to review the configuration settings to ensure their accuracy. Once verified, if everything aligns correctly, it indicates that the budget control is functioning as intended and might be blocking the confirmation of the purchase order as expected.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156