Hi @Theresa_SPAdmin,
I would offer you the workaround to get the string YYYYMMDD from the file name YYYY.MM.DD.csv,please refer to screenshot below to create the flow:

The expression in the Compose 2 as below:
first(split(outputs('Compose'),'.csv'))
The expression in the Compose 3 as below:
split(outputs('Compose_2'),'.')
The expression in the Compose 4 as below:
concat(first(outputs('Compose_3')),first(skip(outputs('Compose_3'),1)),last(outputs('Compose_3')))
The flow would run successfully as below:

Or you could combine the expression in only one action and you cold create the flow as below:

The expression in the Compose 2 as below:
concat(first(split(first(split(outputs('Compose'),'.csv')),'.')),first(skip(split(first(split(outputs('Compose'),'.csv')),'.'),1)),last(split(first(split(outputs('Compose'),'.csv')),'.')))
The flow would run successfully as below:

Best regards,
Alice