web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Getting an error when trying to export the entity to BYOD

(0) ShareShare
ReportReport
Posted on by 2,488

I am getting below error when try to export the entity to BYOD and it is working fine for Excel and CSV.

[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name 'RECID#2'.
Object Server Azure:
Results
Results Cannot select a record in Entity. The SQL database has issued an error.

Any Idea?

Thanks,

Raziq

  • Sukrut Parab Profile Picture
    71,741 Moderator on at

    Which entity you are trying to publish ?

  • Suggested answer
    Satish Panwar Profile Picture
    14,673 Moderator on at

    Hi Ali,

    Does the entity have mutliple data sources in it. Take a look at link below where the similar issue was discussed.

    community.dynamics.com/.../dataentity-export-project-error-related-to-recid-2

  • Navneeth Nagrajan Profile Picture
    2,715 Super User 2026 Season 2 on at

    Hi Ali,

    Looks like an entitykey issue. Had this problem multiple times.

    Irrespective of whether you u have added multiple data sources, ensure that the EntityKey is set on the data entities and then update the staging table. Looks like there is an entitykey missing on your data entity. Looks like the datasource that's been included refers to tables where the primary key is set to SurrogateKey.

    Regards,

    Navneeth Nagrajan| Dynamics 365 Technical Consultant

  • Suggested answer
    Rahul Mohta Profile Picture
    21,046 on at

    if it was working earlier and no change in entity, then try republishing the entity to BYOD and should then compare the schema and then export data

    pls suggets

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,099 on at

    Hi, Is it a custom entity or standard entity? Which PU version are you using? Is "Skip staging" parameter set to "Yes"? I believe I had the same kind of issue before and it was related to some data sources or fields disabled by configuration keys. In some cases setting "Skip staging" to "No" could help or used as workaround, but it depends how much data you are exporting per run to BYOD.

  • Mohammad Raziq Ali Profile Picture
    2,488 on at

    It is a customized entity with multiple datasources.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 266 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 217

#3
Subra Profile Picture

Subra 164 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans