Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
Hi,
I have a Fabric Lakehouse table that contains all string data types. I need to load the data into a new table with the correct data types. When I use the copy data activity, I receive an error message stating that null values in string columns cannot be inserted into an int column. How can I update these columns with actual null values, or is there an easier way to load the data with the correct data types?
Thanks
Solved! Go to Solution.
Hi @Soobramoney ,
For this type of problem, you can make sure that the columns are defined with the correct data types when you create a new table, and allow null values if necessary.
The following demonstrates the successful insertion of a NULL value in a table:
CREATE TABLE [NullCheck1]
(
col1 int not null,
col2 VARCHAR(30) NULL,
col3 VARCHAR(30) not NULL,
col4 int NULL
)
GO
INSERT INTO [NullCheck1] VALUES (3,NULL,'NA',NULL)
select * from [dbo].[NullCheck1]
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Soobramoney ,
For this type of problem, you can make sure that the columns are defined with the correct data types when you create a new table, and allow null values if necessary.
The following demonstrates the successful insertion of a NULL value in a table:
CREATE TABLE [NullCheck1]
(
col1 int not null,
col2 VARCHAR(30) NULL,
col3 VARCHAR(30) not NULL,
col4 int NULL
)
GO
INSERT INTO [NullCheck1] VALUES (3,NULL,'NA',NULL)
select * from [dbo].[NullCheck1]
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Fabric update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
2 |