cancel
Showing results for 
Search instead for 
Did you mean: 

GetFromDB produces dump if BO instance is initial

gadirov
Participant

Dear SAP,

with release 1902 of SAP Sales Cloud a new function has been released to check, if the instance is already persistent in DB and to get the instance values if it so. It has also the advantage to save performance by not using query execution.

Unfortunately, it produces a dump if no BO instance is found, e.g.

var DBPrio =this.GetFromDB();

Only, if an instance is already found, no dumps occur.

Thank you for a short feed back regarding this issue.

Best regards

Rufat

Accepted Solutions (1)

Accepted Solutions (1)

former_member592782
Active Participant

Hello All,

Unfortunately as of this moment this function is not working correctly,

Our development team has already identified the root cause of this issue and has already developed a fix for it, which will be included in a HotFix.

The reason why the dump occurs is due to no instances being present in the Database when using "this" on newly created objects .

A temporary workaround could be to query the instances of the object and only process the ones that are already set via the IsSet() statement. This way the instances that have the initial status are not being processed and the dump does not occur.

The mentioned HotFix should reach your tenants soon (1 - 2 weeks).

I hope this helps,

Piotr Kurzynoga.

marlosdamasceno
Participant
0 Kudos

Hi Piotr,

Thanks for the update!

Best regards,

Marlos Damasceno

former_member592782
Active Participant

This HotFix has now been deployed to all C4C tenants and the GetFromDB() function should be working correctly.

Answers (2)

Answers (2)

marlosdamasceno
Participant

Hi gadirov,

I am facing exactly the same issue as you. I am making sure my object is set using the IsSet(), however when I try the GetFromDB() the dump occurs. It looks like if the object is new and there is nothing in the DB this dump is going to happen, instead of returning an empty or null object.

SAP team could you please check this issue.

Best regards,

Marlos Damasceno

gadirov
Participant

Exactly, Marlos!

marlosdamasceno
Participant

Hi horst.schaude and anant.acharya,

Do you have an idea if this is already known by SAP? Do we need to open an incident?

This new functionality is one of the best that has been released, it is so sad that it is not working fine.

Best regards,

Marlos Damasceno

marlosdamasceno
Participant
0 Kudos

Hi there,

Does anyone from SAP knows something about this issue?

Best regards,

Marlos Damasceno

ziauddin_md
Discoverer
0 Kudos

Hello All,

I tried GetFromDB() today, but dump occured and due to this I have to use the conventional method of reading the data with the help of Query. But I am curious to know the reason of the dump when there is no record available in database.

Regards,

Mohammed Ziauddin.