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 :
Microsoft Dynamics AX (Archived)

SharedServiceUnitNotFoundException when trying to import file for a custom data entity in D365FO

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I'm facing an issue when I'm trying to import a file through code for a custom data entity I've written to import journal lines in D365FO. When I use the same file to import manually through Data management, I works fine.

I have created a batch class that makes use of the FileUploadTemporaryStorageStrategy class. When I click browse and select a file, the OK button gets enables as the file gets uploaded. When I click OK, I get the following exception at the gives lines of code:

Microsoft.DynamicsOnline.Infrastructure.Components.SharedServiceUnitStorage.SharedServiceUnitNotFoundException was unhandled by user code
Message: An exception of type 'Microsoft.DynamicsOnline.Infrastructure.Components.SharedServiceUnitStorage.SharedServiceUnitNotFoundException' occurred in Dynamics.AX.ApplicationFoundation.2.netmodule but was not handled in user code
Additional information: Record for Id - 35K0RCAAF not found.

The lines of code where I hit it are:
 else if (dataSource.Type == DMFSourceType::File && dmfDataSourceProperties.FileFormat == DMFFileFormat::EXCEL)
                {
                    con = DMFXmlGeneration::excleMappingGeneration(fileId,_definitionGrpEntity.ExcelLookUp);
                }

When I debug, I notice something strange:

Thanks in advance for any help on this.

Best regards,

Syed

*This post is locked for comments

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans