Import error relating to datasmith and raytracing

When I import my 3ds max scene into ue4 via datasmith it crashes stating the following:
Assertion failed: SegmentIndex < 0xFF [File:D:/Build/++UE4+Licensee/Sync/Engine/Source/Runtime/Renderer/Private/MeshPassProcessor.cpp] [Line: 284] Ray Tracing does not support meshes with more than 256 sections.

I can turn Raytracing off and the file imports ok but when I turn it back on it crashes. The 256 sections bit sounds like elements in 3ds max maybe… but I was wrong. I imported 500 separate objects and an object with 500 elements… no problem, it worked fine.

How can I find which objects/meshes are causing this error?

hi guy , do you have solved this problem? im also crashed with 4.25.1,when i import mesh from datasmith

@skyrim yes! It was the BOOKS!!! I had a shelf full of books. I decided, in my wisdom to merge all these books to one object. The issue was this. Merging lots of objects with different materials (and texture maps) created lots of sub material slots…more than 256 materials.

I ended up texture baking the single object to one texture and the crashing stopped.

(I’m no expert using UE so this might not be 100% description of the problem… but it seemed to work for me in this case)