[Internal App Store Reactive] UpdateApplication is invoked while record does not have an ApplicationId set.

Forge Component
(0)
Published on 9 Apr by Experts
0 votes
Published on 9 Apr by Experts

Hi team,

While discovering the features of this component, I found out that I am unable to register a new application when I don't have a Application Link set. The following error is being raised:
[FUOXXT038].DBO.[OSUSR_GJ4_APPLICATION] with key 0 was not updated

This happens in App_CreateUpdate:



The Application Input record does not have an ApplicationId set, due to the fact this is a new Application. The output ApplicationId of Application_CreateUpdate is not set in the record Application after that node, and the Application_Update is not checking for ApplicationId <> nullidentifier(), causing a database error.

Could you have a look at this and update the component?

Thanks in advance,

Rob

Rob Mooijman wrote:


The Application Input record does not have an ApplicationId set, due to the fact this is a new Application. The output ApplicationId of Application_CreateUpdate is not set in the record Application after that node, 

Is it not set for the Application you give to Application_CreateUpdate? For any create Action you should be able to retreive the ID of the created entry as an output value. I am not sure those actions meddle with the actual record you hand them to create in the database, but instead return the id of a new entry in the database.

With that you should be able to manually set it via an assignment node.


Solution

Rob, 

Thanks for reporting the issue and for digging in to give detailed inputs. 

Problem solved and a new version was submitted

Regards!

Solution

Thanks team!