I used taUpdateCreateAccountRcd to add a GL account. Then the process was run a second time with the flag to update. After that, I realized one of the segments was incorrect in the input. A new segment had been created that I did not want.
Inside the application, I deleted the imported GL account. I confirmed that GL00100 had no GL accounts referencing the unwanted segment. However, when trying to delete the segment, GP produced an error that there is at least one account using the segment.
It appears this may have been a result of a bug in taUpdateCreateAccountRcd. When the account was originally added, SEGCOUNT in GL40200 was incremented. When taUpdateCreateAccountRcd was run a second time to update the account, SEGCOUNT was incremented again. When I deleted the account, SEGCOUNT was decremented by 1. With it not at zero, GP would not allow me to deleted the unwanted segment.
I was able to resolve by manually setting SEGCOUNT to 0 in GL40200 for the segment. That allowed me to delete it using the application.
*This post is locked for comments

Report
All responses (