Data Model Regen Error

Struggling to figure out this one… Added a single column to OrderHed, then trying to do DataModelRegen and I keep getting the following error.

From the DataModelGenerator.log file, no errors until the bottom of the file which looks like the following. I have reinstalled the .Net SDK, uninstalled and re-installed the Database and Application server manager extensions, but consistently get the same error.

DataModelGenerator.log file

Transform Model T4 template
transformation completed. (12.31 s)
Transform TempRowTypes T4 template
transformation of TempRowTypes completed. (0.59 s)
Build context project
Determining projects to restore…
C:\Users\epicoradmin\AppData\Local\Temp\Epicor\DataModelGenerator\Source\Server\Db\Ice.Data.Model\Ice.Data.Model.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Ref. No packages exist with this id in source(s): Offline
C:\Users\epicoradmin\AppData\Local\Temp\Epicor\DataModelGenerator\Source\Server\Db\Ice.Data.Model\Ice.Data.Model.csproj : error NU1101: Unable to find package Microsoft.WindowsDesktop.App.Ref. No packages exist with this id in source(s): Offline
C:\Users\epicoradmin\AppData\Local\Temp\Epicor\DataModelGenerator\Source\Server\Db\Ice.Data.Model\Ice.Data.Model.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.App.Ref. No packages exist with this id in source(s): Offline
Failed to restore C:\Users\epicoradmin\AppData\Local\Temp\Epicor\DataModelGenerator\Source\Server\Db\Ice.Data.Model\Ice.Data.Model.csproj (in 407 ms).
Determining projects to restore…
C:\Users\epicoradmin\AppData\Local\Temp\Epicor\DataModelGenerator\Source\Server\Db\Ice.Data.Model\Ice.Data.Model.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Ref. No packages exist with this id in source(s): Offline
C:\Users\epicoradmin\AppData\Local\Temp\Epicor\DataModelGenerator\Source\Server\Db\Ice.Data.Model\Ice.Data.Model.csproj : error NU1101: Unable to find package Microsoft.WindowsDesktop.App.Ref. No packages exist with this id in source(s): Offline
C:\Users\epicoradmin\AppData\Local\Temp\Epicor\DataModelGenerator\Source\Server\Db\Ice.Data.Model\Ice.Data.Model.csproj : error NU1101: Unable to find package Microsoft.AspNetCore.App.Ref. No packages exist with this id in source(s): Offline
Failed to restore C:\Users\epicoradmin\AppData\Local\Temp\Epicor\DataModelGenerator\Source\Server\Db\Ice.Data.Model\Ice.Data.Model.csproj (in 406 ms).

Error Generating the Data Models: Unable to build Data Model ‘Ice.Data.Model’.

Has anyone seen this before?
Thanks,
Troy

1 Like

Possible permissions issue to the temp directory? Dis you do restart the whole machine?

Related:

3 Likes

Thanks Haso, that worked!!! I missed that other thread in earlier searches.

“Such an obvious of a fix”… I said NEVER!

1 Like

Just to clarify, the solution was to add that line to the config, is that right?

I had this same error when I had .NET 8 and .NET 10 SDKs installed.

I uninstalled .NET 10 SDK (x64) and then the Regen worked successfully for 2025.2.

2 Likes

My response from Support today actually. For posterity.

I think the reason for the behavior was that the Kinetic portion was done before the .NET install was completed. Personally, I install .NET 10 first and then installed Kinetic and deployed the appservers, etc. I did not run into this issue.

However, there were people on the Development and QA teams to installed Kinetic first and ran into issues like the one you reported. Long story short, I will be reviewing the installation guides to suggest making some changes to make it clear that the .NET Components should be install first. We will then have the documentation deploy updated versions of the guides.

4 Likes

Yes! This is what NuGet.config looks like now and it works.

******
1 Like

Trying this again…

<configuration>
  <packageSources>
    <clear />
    <add key="Offline" value="packages" />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>
2 Likes

I was about to say, when I read about people installing and uninstalling I was wondering what their process was to begin with because like you, I always thought the guides specified that the .NET frameworks and everything should be installed before the Kinetic media.

Thanks for confirming that.