Entradas

Mostrando las entradas de febrero, 2026

Error usando STRING_SPLIT en SQL

Imagen
  Ese error “Invalid object name 'STRING_SPLIT'” normalmente significa que tu versión de SQL Server no soporta la función STRING_SPLIT (apareció recién en SQL Server 2016 con nivel de compatibilidad 130). Si trabajas con una versión anterior, hay varias alternativas para dividir cadenas: Alternativas a STRING_SPLIT 1. Usar funciones definidas por el usuario (UDF) Puedes crear tu propia función para dividir cadenas. Ejemplo clásico con CHARINDEX y SUBSTRING : --------------------------- CREATE FUNCTION dbo.SplitString (     @string NVARCHAR(MAX),     @delimiter CHAR(1) ) RETURNS @output TABLE (value NVARCHAR(MAX)) AS BEGIN     DECLARE @start INT = 1, @end INT     WHILE CHARINDEX(@delimiter, @string, @start) > 0     BEGIN         SET @end = CHARINDEX(@delimiter, @string, @start)         INSERT INTO @output (value)         VALUES (SUBSTRING(@string, @start, @end - @st...

bl al error AL0185: Codeunit 'NoSeriesManagement' is missing

Imagen
  The error   AL0185: Codeunit 'NoSeriesManagement' is missing   in Microsoft Dynamics 365 Business Central occurs because the   NoSeriesManagement   codeunit has been   deprecated and removed   in recent versions (specifically in Business Central v27, and marked for removal in v24/2024 Wave 1).   Microsoft has replaced the old codeunit with a new, more modular system involving the  No. Series  and  No. Series - Batch  system modules.   Solution To resolve this error, you need to update your AL code to use the new pattern:   Replace references  to the old  NoSeriesManagement  codeunit with the new  No. Series  codeunit for single number series operations or  No. Series - Batch  for performance-optimized, multiple number series operations. Add necessary dependencies  to your  app.json  file for the new  Business Foundation  application, if not already included...