Yes, error attached in the post is from the device to the MDM Command response. These commands are tired out in the supervised devices. Other than settings command some other commands like Installed Application List, Security Info also failing with the Server Session Invalidated Error.
Yes, but these logs are from Device side. That why you should check from your MDM Server if you also see this error. In order to know if this is due to a response from your MDM Server or an other network equipment.
From mdm server, Settings command is sent to the device. Device checks in with the error code 502 to the MDM server. At the time of this error , we checked device logs in MAC. We are getting mem limit reached
One idea is to use an empirical approach to isolate the reason for this issue. Start with smaller jpg files, e.g., 5K, 10K, 50K, 100K. Find what is the threshold file size for this problem to occur. It could be due to a specific jpg file.
Also, if other commands fail, do they fail due to the same memory limit exceeded reason?
I took a look at the same issue some time back and came to the conclusion that this type of profile can only be created by an EMM.
After deploying from a couple of EMM’s I noticed the image was being stored on the server and only referenced in the profile. I will try and find some data to back this statement.