hougaard / Simple-Object-Designer

Issue tracking for the Simple Object Designer for Business Central
7 stars 0 forks source link

Error using another customization’s field in criteria for mandatory actions #303

Closed otherjoel closed 1 year ago

otherjoel commented 1 year ago

Trying to set up a mandatory action that is applicable if the QCApprove field on the sales header is "false":

image

When I deploy to the same environment, I see this error:

image

The field does exist, but it was added via another customization created by another developer. Is this a limitation of SOD or should this still be able to work?

hougaard commented 1 year ago

I think I know what's going on. Could you try add something else that uses fields/objects from that 3rd party app? And see if the inclusion of anything from that app would make the mandatory field deploy?

otherjoel commented 1 year ago

Something else, specifically in the area of mandatory actions? Or should it be in some other area? (I'm drawing a blank here)

hougaard commented 1 year ago

Not mandatory, put a field on a page from that app or something like that

otherjoel commented 1 year ago

I added the field to the Sales Order Statistics page (it is already on the sales order) and received the same error, except now for the Sales Order Statistics page:

Deployment failed. Errors: App ID : ab8e6875-5d1e-42cb-b326-da92f749c926 Message : { Extension compilation failed PageExtensions/Sales_Order_Statistics_PageExt.al(7,40): error AL0132: 'Record "Sales Header"' does not contain a definition for 'QCApprove' }

hougaard commented 1 year ago

Hmm... Can you please use the "Refesh Symbols" (answer Yes to clearing the cache), it seems that this other extension is eluding symbol detection (unless you have ignored the request to refesh). Is this other app installed with "dev" scope?

otherjoel commented 1 year ago

It seems the developer had recently uninstalled their app from my sandbox environment (unclear why). Once they installed it back, deploying by SOD app works properly. Since this was the first time referencing any other customization’s fields from within SOD I didn’t understand what was going on or what to look for. Thanks for the help!