What were the codes? Generally speaking, the codes aren't intermittent. They will come back. In other words, don't clear them to see if they come back.
On a 2012, first you want to do an injection quantity test. Run the truck until the coolant temp is above 176 or so. After it's warmed up completely, use DX to set the rpm at 1500. Monitor engine speed, coolant temp, and injection quantity. Monitor it for about ten minutes. Does the engine rpm fluctuate in a range of around 1490-1510 or more? What's the injection quantity? If you see this fluctuation for a good portion of that ten minutes, and/or the injection quantity is consistently less than six, it needs injectors. This was the cause of the excess soot that packed into the DPF and caused the outlet temp to skyrocket. Depending on mileage, you may want to contact your local dealer and see what the warranty guide says: some trucks are getting coverage in the 4-5 year range with 250k miles. It changes now and then. Worth a call. If the injectors have any warranty left, it will also pay for incidental damages. If injectors wipe out the dpf, you get a dpf covered too. Definitely worth looking at.
What were those codes? Soot in tailpipe? Find the line that says "pm amount of piling up". It may be in the ecu customization menu. If below 12, it may be able to regen. Write that number down, then change it to three. This will set the DPR meter to four bars, and you can force a manual regen (don't do it yet).