Skip to Content

GetFromDB produces dump if BO instance is initial

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


Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Feb 27, 2019 at 10:09 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 08, 2019 at 11:22 AM

    Hi Rufat 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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 26, 2019 at 01:28 PM

    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.


    Mohammed Ziauddin.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.