---
title: "How to mass update source attribute properties based on a data type"
canonical: "https://docs.vaultspeed.com/space/VPD/3320775102/How+to+mass+update+source+attribute+properties+based+on+a+data+type"
format: markdown
---
**Step 1:** Update the parameter **CAST_SOURCE_ATTRIBUTES** to Y (on source level) if this is not yet the case

![image](media://549a90b9-c1e2-455e-acc0-d774da933978)

--> This is a step that needs to be done to be able to sort on the datatype in the mass update of the graphical editor. 

> ⚠️ **Important**: This parameter change need to be reversed after having completed all step as it just helps in the next steps.

**Step 2:** Create a new source release of the source where you want to update the precision and scale.  
**Step 3: **Go to the mass update for attributes screen

![image](media://3981a699-050f-48d9-a4af-36ecd271c69b)

**Step 4:** select all attributes from that source by using '%' and click search (this can take a bit of time)

![image](media://5063b5d0-1d0a-49e6-bcce-5bb0b94cee12)

**Step 5:** Choose attribute fields: Data type so you can order on that column and select (check boxes) all attributes that need an update, we are not going to update the data type, this is just to make the selection easier, in your case probably all **numbers** as you see in the screenshot I did for my source

![image](media://f94945cf-99a4-4711-98f6-3f65a50ac675)

**Step 6**: Go again to the top and change the property you want to change, in this example, the data precision. So choose data precision and for value a very low number like 1. This to make sure that the value that will be coming from the database will definitely be equal or bigger. Click **update selected.**

![image](media://d0b517b8-1910-41f4-8a1d-62a1135c340f)

**Step 7**: update the parameter **CAST_SOURCE_ATTRIBUTES** to the value it had before. (on source level)  
**Step 8**: create a new source release (the previous one doesn’t need to be locked) and check the precision and scale. This should now be the correct value.  
**Step 9**: Repeat this process for all sources necessary.

We know it's some work to do this. So we will also think about how to improve and make this easier.  
Like for example already directly have a data type filter in the mass update screen without having to change parameters, …